package com.ccExcelUtil;


import com.ccExcelUtil.validator.inList.InList;
import com.ccExcelUtil.validator.relatedField.RelatedClass;

import javax.validation.constraints.NotBlank;

@RelatedClass
public class Student {
    @NotBlank(message = "名字不能为空")
    private String name;
    private String age;
    @InList(values = {"一班","二班"},message = "班级错误")
    private String studentClass;
    private String source;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getStudentClass() {
        return studentClass;
    }

    public void setStudentClass(String studentClass) {
        this.studentClass = studentClass;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }
}
